package com.example.combwx.utils;

import android.util.Log;

import com.blankj.utilcode.util.EncryptUtils;

import java.util.Arrays;

public class MD5Utils {
    // 针对服务器中每个接口中sign参数的加密方法
    private static final String TAG = "MD5Utils";

    public static String createSign(String oldStr) {
        Log.i(TAG, "createSign: ");
        if (oldStr.isEmpty())
            return "";
        char[] arrs = oldStr.toCharArray();
        Arrays.sort(arrs);
        String str = new String(arrs);
        return EncryptUtils.encryptMD5ToString(str + "tamboo").toLowerCase();
    }


}
